import student.web.internal.CurrentUserMap;
import student.web.internal.SharedPersistenceMap;

public class EditApp
{
	CurrentUserMap<User> currentUser = new CurrentUserMap<User>(User.class);
	SharedPersistenceMap<User> users	 = new SharedPersistenceMap<User>(User.class);
	public EditApp()
	{

	}
	public User getCurrentUser()
	{
		return currentUser.getCurrentUser();
	}
	public boolean login(String userName, String password)
	{
		return false;
	}

	public void saveProfile(User user)
	{
		UserRegistry.updateUser(user);
		
		currentUser.setCurrentUser(user);
	}
	public void undoChanges()
	{
		users.get(currentUser.getCurrentUser().getName());
//		User user = currentUser.getCurrentUser();
//		currentUser.setCurrentUser(user);
	}

}
